package at.austria.leecher;

import at.austria.leecher.pages.LeecherPage;
import at.austria.leecher.pages.SingleChartsPage;
import org.apache.log4j.Logger;

public class LeecherRun {

    private static final Logger LOG = Logger.getLogger( LeecherRun.class );

    public static void main( final String[] args ) {
        // DOMConfigurator.configure( "log4j.xml" );

        try {
            final LeecherPage page = new SingleChartsPage();

            page.start();

            /*
            synchronized ( page ) {
                page.wait( 10000 );
            }
            */

            LOG.info( page );
        } catch ( final Exception e ) {
            e.printStackTrace();
            System.out.println( "ERROR: " + e.getMessage() );
        }
    }
}
